window.onload = function () {
        //parse
        appCate = jQuery("body > div.main > div.container.cf > div.bread-crumb > ul > li:nth-child(2) > a").text();
        appName = jQuery("body > div.main > div.container.cf > div.bread-crumb > ul > li:nth-child(3)").text();
        info = appCate + " : " + appName;
        console.log(info);
        //save
        jQuery.get('http://localhost/save?data=' + info, null, function () {
                //next
                num = localStorage.getItem('num');
                next = 0;
                if (num) {
                        next = Number(num) + 1;
                }
                if (next < window.applist.length) {
                        localStorage.setItem('num', next)
                        appid = window.applist[next]
                        window.location.href = 'http://app.mi.com/details?id=' + appid;
                } else {
                        localStorage.removeItem('num');
                }
        });
}